package cn.lyq.card.data.model


class ResponseInfo<T>(
    val code: Int,
    val msg: String,
    val data: T
) {
    fun isOk() = code == 200

    /** 登陆超时*/
    fun isExpired() = code == 101

    /** token错误*/
    fun isTokenError() = code == 403

}